<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
List Of ThongTinCongTy
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
            <th>Logo</th>
			<th>TenCongTy</th>
			<th>TruSoChinh</th>
			<th>DienThoai</th>
			<th>Fax</th>
			<th>Email</th>
			<th>LienHe</th>
			<th>Phone</th>
			<th></th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.ThongTinCongTyModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].ID %>">
		<% } %>
            <td><img src="../../../Content/Images/Items/<%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].Logo %>" width="90px" height="90px" /></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].TenCongTy %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].TruSoChinh %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].DienThoai %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].Fax %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].Email %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].LienHe %></td>
			<td><%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].Phone %></td>
			<td>
				<a href="../../Admin/DetailOfThongTinCongTy?id=<%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].ID %>">
					<span style="color: Blue; text-decoration: underline">Select</span>
				</a>
			</td>
			<td>
                <a href="../../Admin/DeleteThongTinCongTy?id=<%= Model.ThongTinCongTyModel.GetModel.LstObjModel[i].ID %>">
					<span style="color: Blue; text-decoration: underline">Delete</span>
				</a>
			</td>
		</tr>
	<% } %>  
</table>
